package com.example.controller;

import com.example.result.CommonResult;
import com.example.service.VisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/Visit")
public class VisitController {
    @Autowired
    VisitService visitService;

    /**查询访客信息
     * @return
     */
    @GetMapping("/visit")
    public CommonResult getvisit(){
        return CommonResult.ok(visitService.getvisit());
    }
}
